#ifndef DEF_H_INCLUDED
#define DEF_H_INCLUDED

#include <windows.h>
#include <tchar.h>
#include <iostream>

#if			_WIN32_WINNT < 0x0500
 #undef		_WIN32_WINNT
 #define	_WIN32_WINNT   0x0500
#endif

// To use Windows dependent UNICODE function
// GetWindowText will map to GetWindowTextW
//#ifndef UNICODE
//#define	UNICODE
//#endif

// To use Character dependent UNICODE function
// _tcslen will map to wcslen
//#ifndef	_UNICODE
//#define _UNICODE
//#endif

#if defined(UNICODE) || defined(_UNICODE)
 #define tcout wcout
#else
 #define tcout cout
#endif

#ifdef DEBUG
 #define DBG std
#endif // defined

namespace std { typedef basic_string<TCHAR> tstring; }

#endif // DEF_H_INCLUDED
